<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AddExpert</title>
<link type="text/css" href="../css/redmond/jquery-ui-1.7.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../script/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../script/jquery-ui-1.7.custom.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$(".date-text").datepicker( { dateFormat: 'yy-mm-dd', changeYear: true, changeMonth: true, dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'], monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12']} );
    prepare();
    $("#SUBMIT_BUTTON").click(submitExpert);
});
function prepare() {
    $.getJSON("AddExpertPrepareInit.action",
        function(data) {
        
            var provinceArr = new Array();
            for (var i = 0; i < data.provinceList.length; i++) {
                provinceArr.push('<option value="' + data.provinceList[i].pid + '">' + data.provinceList[i].name + '</option>');
            }
            $("#province").append(provinceArr.join(''));
            
            var qualificationArr = new Array();
            for (var j = 0; j < data.qualificationList.length; j++) {
                qualificationArr.push('<option value="' + data.qualificationList[j].qualificationCode + '">' + data.qualificationList[j].qualificationName + '</option>');
            }
            $("#qualificationCode").append(qualificationArr.join(''));
            
            var titleArr = new Array();
            for (var k = 0; k < data.titleList.length; k++) {
                titleArr.push('<option value="' + data.titleList[k].titleCode + '">' + data.titleList[k].titleName + '</option>');
            }
            $("#titleCode").append(titleArr.join(''));

            $("#province").change(function() {
                if ($(this).val() != '' && $(this).val() != null) {
                    $.getJSON("AddExpertPrepareCity.action", {"provinceId": $(this).val()},
                        function(data) {
                            var cityArr = new Array();
                            for (var l = 0; l < data.cityList.length; l++) {
                                cityArr.push('<option value="' + data.cityList[l].id + '">' + data.cityList[l].name + '</option>');
                            }
                            $("#city").empty().append(cityArr.join(''));
                        }
                    );
                }
            });
        }
    );
}
function submitExpert() {
    $.getJSON("AddExpertSubmit.action",
        {
            "expert.expertname": $("#expertname").val(),
            "expert.sex": $("#sex").val(),
            "expert.birthday": $("#birthday").val(),
            "expert.idcard": $("#idcard").val(),
            "expert.province": $("#province").val(),
            "expert.city": $("#city").val(),
            "expert.unit": $("#unit").val(),
            "expert.scienceName": $("#scienceName").val(),
            "expert.qualificationCode": $("#qualificationCode").val(),
            "expert.titleCode": $("#titleCode").val(),
            "expert.research": $("#research").val(),
            "expert.publications": $("#publications").val(),
            "expert.rewards": $("#rewards").val(),
            "expert.tel": $("#tel").val(),
            "expert.mobile": $("#mobile").val(),
            "expert.email": $("#email").val(),
            "expert.addr": $("#addr").val(),
            "expert.post": $("#post").val()
        },
        function(data) {
            if (data.optRet == "success") {
                $("#optRet").text("添加专家操作成功");
            }
        }
    );
}
</script>
</head>
<body>
<table width="100%"  border="0" cellspacing="2" cellpadding="4">
    <tr>
        <th width="10%" scope="row">序号</th>
        <td width="90%">评审内容</td>
        <td width="90%" colspan="2">评审要点</td>
        <td width="90%">分数</td>
    </tr>
    <tr>
        <th scope="row">1</th>
        <td>方案服务年限的确定（5分）</td>
        <td colspan="2">以采矿许可证年限为参考，开采年限低于30年的</td>
        <td><input type="text" name="textfield" /></td>
    </tr>
    <tr>
        <th rowspan="4" scope="row">2</th>
        <td rowspan="4">项目基本情况、项目区土地利用现状（10分）</td>
        <td colspan="2">&nbsp;</td>
        <td rowspan="4"><input type="text" name="textfield2" /></td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <th rowspan="7" scope="row">3</th>
        <td rowspan="7">土地复垦可行性分析（15分）</td>
        <td colspan="2">&nbsp;</td>
        <td rowspan="7"><input type="text" name="textfield22" /></td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td rowspan="3">&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
        <th scope="row">4</th>
        <td>复垦目标（5分）</td>
        <td colspan="2">&nbsp;</td>
        <td><input type="text" name="textfield222" /></td>
    </tr>
    <tr>
        <th scope="row">5</th>
        <td>复垦标准（5分）</td>
        <td colspan="2">&nbsp;</td>
        <td><input type="text" name="textfield2222" /></td>
    </tr>
    <tr>
        <th rowspan="3" scope="row">6</th>
        <td rowspan="3">预防与复垦措施（10分）</td>
        <td rowspan="3">&nbsp;</td>
        <td>&nbsp;</td>
        <td rowspan="3"><input type="text" name="textfield22222" /></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <th scope="row">7</th>
        <td>工程设计及测算（12分）</td>
        <td colspan="2">&nbsp;</td>
        <td><input type="text" name="textfield22223" /></td>
    </tr>
    <tr>
      <td rowspan="3">8</td>
      <td rowspan="3" align="center"><div align="left">土地复垦投资估概算（10）</div></td>
      <td colspan="2" align="center">&nbsp;</td>
      <td rowspan="3" align="center"><div align="left">
        <input type="text" name="textfield22224" />
      </div></td>
    </tr>
    <tr>
      <td colspan="2" align="center">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" align="center">&nbsp;</td>
    </tr>
    <tr>
      <td>9</td>
      <td align="center"><div align="left">土地复垦效益分析（2分）</div></td>
      <td colspan="2" align="center">&nbsp;</td>
      <td align="center"><div align="left">
        <input type="text" name="textfield222242" />
      </div></td>
    </tr>
    <tr>
      <td rowspan="2">10</td>
      <td rowspan="2" align="center"><div align="left">工作计划安排（10分）</div></td>
      <td rowspan="2" align="center">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td rowspan="2" align="center"><div align="left">
        <input type="text" name="textfield2222422" />
      </div></td>
    </tr>
    <tr>
      <td align="center">&nbsp;</td>
    </tr>
    <tr>
      <td rowspan="3">11</td>
      <td rowspan="3" align="center"><div align="left">保障措施（10分）</div></td>
      <td colspan="2" align="center">&nbsp;</td>
      <td rowspan="3" align="center"><div align="left">
        <input type="text" name="textfield22224222" />
      </div></td>
    </tr>
    <tr>
      <td colspan="2" align="center">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" align="center">&nbsp;</td>
    </tr>
    <tr>
      <td>12</td>
      <td align="center"><div align="left">内容格式及其他（6分）</div></td>
      <td colspan="2" align="center">&nbsp;</td>
      <td align="center"><div align="left">
        <input type="text" name="textfield222242222" />
      </div></td>
    </tr>
    <tr>
      <td>具体修改意见</td>
      <td colspan="4" align="center"><p>项目名称：
        </p>
        <p>
          <textarea name="textfield3" cols="100" rows="100"></textarea>
        </p></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td colspan="2" align="center">专家姓名</td>
      <td align="center"><input type="text" name="textfield4" /></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td align="center">&nbsp;</td>
        <td colspan="2" align="center">评审日期</td>
        <td align="center"><input type="text" name="textfield42" /></td>
    </tr>
</table>
</body>
</html>